home *** CD-ROM | disk | FTP | other *** search
- On Wed, 26 May 93 12:02:35 , Adam Treister wrote:
- > This means moving the primary key from something known to change on
- > expunge, to using a memory location as a primary key.
-
- Yes.
-
- > Sounds dicey, but probably will work....if I never garbage collect. Do I
- > read InternalDoc correctly...that mail_gc(stream,GC_ELT) will throw away
- > the cache elements.
-
- Right. The usage of GC_ELT is fundamentally incompatible with using elt
- locking and sharing. Not only won't the space be reclaimed, but you'll have
- orphaned elts.
-
- Actually, that could be fixed. I could make GC_ELT be a no-op on an elt if
- the lockcount is greater than 1, but then in the stream close case I would
- have to duplicate the code since there you want to release it unconditionally.
-
- I don't think GC'ing elts is really all that useful a thing to do. It only
- works on IMAP streams anyway, never on local messages, and Macs are not
- anywhere near as tight on memory as Pieces'o'Crap are.....
-
- > It also is making assumptions about direct pointers,
- > violating the cardinal rule of Macs.
-
- Yes, well, that's throughout c-client.
-
- > mail_elt is mail_element, right?
-
- There is no mail_element function in c-client, but yes, it gets a cache
- element.
-
-
-
-